Skip to main content

flip

Type

command

Summary

Invert an image horizontally or vertically.

Syntax

flip [<imageRef>] {horizontal | vertical}

Description

Use the flip command to turn an image over.

The vertical form flips the image vertically, swapping its top and bottom. The horizontal form flips the image side to side, swapping its right and left.

If you don't specify an image, the portion currently selected with the Select paint tool is flipped.

The flipping operation is its own inverse: flipping an image twice in the same direction restores it to its original appearance.

Important

Flipping a referenced image changes its orientation only temporarily. The next time the referenced image is displayed, its original orientation returns.

Parameters

NameTypeDescription

imageRef

Any image reference.

Examples

flip vertical
flip image 1 vertical
flip image "Logo" horizontal

command: choose, crop, revRotatePoly

glossary: command, referenced control, paint tool

keyword: image

Compatibility and Support

Introduced

LiveCode 1.1

OS

mac

windows

linux

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?